package com.prb.client.controller;


import com.prb.client.factory.ProxyFactory;
import com.prb.service.IUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/client")
public class ClientController {


    @GetMapping("/test")
    public String test(){

        IUserService userService = (IUserService) ProxyFactory.newProxy(IUserService.class);

        String result = userService.getUserMsg("test");

        System.out.println("result is :" + result);

        return result;
    }



}



